<?php
	/*
	 * all of these will be transformed into define statements via a pre_controller hook so that they can be used throughout the system.  The define names will be capitalized versions of the indexes.
	 */
	$config['cmf_prefix'] = 'cmf/';
	$config['cmf_url'] = '/' . $config['cmf_prefix'];
	$config['cmf_login_url'] = $config['cmf_url'] . 'login/';
	$config['cmf_logout_url'] = $config['cmf_url'] . 'logout/';
	
	$config['cmf_login_view'] = $config['cmf_prefix'] . 'login';
	$config['cmf_logout_view'] = $config['cmf_prefix'] . 'logout';
	$config['cmf_main_view'] = $config['cmf_prefix'] . 'main';
	$config['cmf_default_table_view'] = $config['cmf_prefix'] . 'table_view';
	$config['cmf_default_table_edit_view'] = $config['cmf_prefix'] . 'table_edit';
	$config['cmf_default_table_ajax_edit_view'] = $config['cmf_prefix'] . 'table_edit_ajax';
	$config['cmf_default_error_view'] = $config['cmf_prefix'] . 'table_error';
	
	$config['cmf_controller_path'] = APPPATH . 'controllers/cmf/';
	$config['cmf_helpers_path'] = APPPATH . 'helpers/cmf/';
	$config['cmf_libraries_path'] = APPPATH . 'libraries/cmf/';
	$config['cmf_model_path'] = APPPATH . 'models/';
	$config['cmf_view_path'] = APPPATH . 'views/cmf';
	
	$config['cmf_upload_path'] = BASEPATH . 'uploads/';
	$config['cmf_password_file'] = '';
	$config['cmf_password_table'] = 'Admin_Users';
	$config['cmf_password_encryption'] = 'sha1';
	
	$config['ie_js_debug'] = false;
	
	/*  
	 * 	Add this code at the end of any config file to check for local environment overrides
	 * 
	 *  After this code has been added to the bottom of a config file, config.php, you should create
	 *  a file config.local.php and put any local overrides inside it.
	 *  
	 *  IMPORTANT: you should NOT commit the .local file to the repository
	 */
	$matches = array();
	preg_match('/^(.+)\.([A-z]{3}[0-9]?)$/', __FILE__, $matches);
	@include_once($matches[1] . '.local.' . $matches[2]);
?>
